<template>
  <div>
    <el-tabs v-model="activeName" type="card" @tab-click="handleClick">
      <el-tab-pane label="前一日~分区查看" name="PrevDateDistrict">
        <PrevDateDistrict></PrevDateDistrict>
      </el-tab-pane>
      <el-tab-pane label="前一日~分类查看" name="PrevDateStatus" lazy>
        <PrevDateStatus></PrevDateStatus>
      </el-tab-pane>
      <el-tab-pane label="前一周~分区查看" name="PrevWeekDistrict" lazy>
        <PrevWeekDistrict></PrevWeekDistrict>
      </el-tab-pane>
      <el-tab-pane label="前一周~分类查看" name="PrevWeekStatus" lazy>
        <PrevWeekStatus></PrevWeekStatus>
      </el-tab-pane>
    </el-tabs>
  </div>
</template>
<script>
let me;
import PrevDateDistrict from "@/components/yangData/prevDateDistrict";
import PrevDateStatus from "@/components/yangData/prevDateStatus";
import PrevWeekDistrict from "@/components/yangData/prevWeekDistrict";
import PrevWeekStatus from "@/components/yangData/prevWeekStatus";
export default {
  components: {
    PrevDateDistrict, PrevDateStatus, PrevWeekDistrict, PrevWeekStatus
  },
  data() {
    return {
      activeName: 'PrevDateDistrict'
    }
  },
  created() {
  },
  mounted() {
    me = this;
  },
  methods: {
    handleClick(tab, event) {
      console.log(tab, event);
    }
  },
}
</script>
<style lang="scss" scoped>
</style>